package org.agent.service.systemConfig;

import java.util.List;

import org.agent.dao.systemConfig.SystemConfigMapper;
import org.agent.pojo.SystemConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("systemConfigService")
public class SystemConfigServiceImpl implements SystemConfigService {
	
	@Autowired//自动按照类型注入
//	@Qualifier("userMapper")两个组合一起 表示按名称注入
	private SystemConfigMapper systemConfigMapper;

	public SystemConfigMapper getSystemConfigMapper() {
		return systemConfigMapper;
	}

	public void setSystemConfigMapper(SystemConfigMapper systemConfigMapper) {
		this.systemConfigMapper = systemConfigMapper;
	}

	@Override
	public List<SystemConfig> getSystemConfigList(SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.getSystemConfigList(systemConfig);
	}

	@Override
	public List<SystemConfig> getSystemConfigListIsStart(
			SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.getSystemConfigListIsStart(systemConfig);
	}

	@Override
	public int addSystemConfig(SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.addSystemConfig(systemConfig);
	}

	@Override
	public int modifySystemConfig(SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.modifySystemConfig(systemConfig);
	}

	@Override
	public int isPeatSystemConfig(SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.isPeatSystemConfig(systemConfig);
	}

	@Override
	public int deleteSystemConfig(SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.deleteSystemConfig(systemConfig);
	}

	@Override
	public int maxTypeValueByType(int configType) {
		// TODO Auto-generated method stub
		return systemConfigMapper.maxTypeValueByType(configType);
	}

}
